package com.ipzoe.app.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "会员更新入参")
public class MemberUpdateRequestDTO implements Serializable {

    @ApiModelProperty(value = "会员昵称",required = false)
    private String nickname;
    @ApiModelProperty(value = "会员性别：0-男，1-女",required = false,allowableValues = "0,1")
    private Integer sex;
    @ApiModelProperty(value = "会员生日",required = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    @ApiModelProperty(value = "潜水等级",required = false)
    private Integer diveLevel;
    @ApiModelProperty(value = "潜水体系",required = false)
    private Integer diveSystem;
}
